auto merge of #773 : alexcrichton/cargo/update-all-packages-from-a-git-repo, r=brson
authorbors <bors@rust-lang.org>
Fri, 31 Oct 2014 20:44:47 +0000 (20:44 +0000)
committerbors <bors@rust-lang.org>
Fri, 31 Oct 2014 20:44:47 +0000 (20:44 +0000)
commitfd44d93464ceac6027eab9adad678ccdcd426d15
tree9de51fa9be83ea92e48e0ef3e0dff8fd67e0b25b
parent5bd91031cfb28131081bd52a47bf18b4d641de49
parentce14ff2f77ce26ed2fc8a2005e700bc930ea6c28
auto merge of #773 : alexcrichton/cargo/update-all-packages-from-a-git-repo, r=brson

With the recent resolve rewrite, `cargo update -p foo` would only update one
package in a git repository, even if the repository provided many packages.
Cargo does not currently support depending on the same git repository source
with different precise revisions, and this would cause errors down the line
depending on what happened.

This adds a fix to the `resolve_with_previous` method to ensure that any
non-registry sources being updated will not have any locked packages inside them
which would result in an invalid lockfile.